<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>


<%@page import="br.com.bean.NotaFaltaBimestreBean"%>
<%@page import="br.com.controller.NotaFaltaBimestralController"%>
<%@page import="br.com.bean.DisciplinaTurmaBean"%>
<%@page import="br.com.controller.DisciplinaController"%>
<%@page import="br.com.connection.ConnectionFactory"%>
<%@page import="java.sql.Connection"%>
<%@page import="java.util.List"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>Insert title here</title>
</head>
<body>

	<%
		Connection conn = new ConnectionFactory().getConnection();
	%>
	<%
		int id1 = Integer.parseInt(request.getParameter("id"));
		List<NotaFaltaBimestreBean> canhotoList = NotaFaltaBimestralController
				.ListCanhoto(conn, id1);
		conn.close();
	%>
	<table id="tabela">
		<tr>
			<th style="width: 30px">Nº</th>
			<th style="width: 300px">ALUNO</th>
			<th style="width: 50px">NOTA</th>
			<th style="width: 30px">FALTA</th>
		</tr>
		<%
			for (int i = 0; i < canhotoList.size(); i++) {
		%>
		<tr>
			<td><input type="hidden" name="matr<%=i%>"
				value="<%=canhotoList.get(i).getNmatricula().getId()%>" /> <%=canhotoList.get(i).getNmatricula().getNchamada()%></td>
			<td><input type="hidden" name="aluno<%=i%>"
				value="<%=canhotoList.get(i).getAluno().getId()%>" /> <%=canhotoList.get(i).getAluno().getNome().toString()%></td>
			<td><input type="text" name="nota<%=i%>" class="nota" size="3"
				maxlength="3" /></td>
			<td><input type="text" name="falta<%=i%>" class="falta" size="3"
				maxlength="3" /></td>
			<input type="hidden" name="tamanho" /></td>
		</tr>
		<%
			}
		%>
	</table>
</body>
</html>